package com.tbsoft.ehr.service.resume;

import java.io.IOException;
import java.util.List;

import com.tbsoft.ehr.model.AttachFile;
import com.tbsoft.ehr.model.Resume;
import com.tbsoft.ehr.service.BaseService;
/**
 * @desc 简历Service
 * @author vastdream
 *
 */
public interface ResumeService extends BaseService {
	/**
	 * @desc 保存简历
	 * @param resume
	 */
	public void saveResume(Resume resume, List<AttachFile> attachFileList)throws IOException;
	/**
	 * @desc 根据条件查询简历
	 * @param resume
	 * @return
	 */
	public List<Resume> getResumeList(Resume resume,int startIndex,int count);
	/**
	 * @desc 根据条件数量
	 * @param resume
	 * @return
	 */
	public int getResumeCount(Resume resume);
	/**
	 * @desc 根据ID查询简历
	 * @param id
	 * @return
	 */
	public Resume getResumeById(String id);
	/**
	 * @desc 更新简历
	 * @param resume
	 * @param attachFileList TODO
	 */
	public void savrOrupdateResume(Resume resume, List<AttachFile> attachFileList) throws IOException;
	/**
	 * @desc 删除简历
	 * @param id
	 */
	public void deleteResume(Resume resume);
	
	public Resume getResumeByUserId(String userid);
	/**
	 * @desc 保存面试结果
	 * @param resume
	 */
	public void saveInterviewResult(Resume resume);
}
